﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Subscriptions.aspx.cs" Inherits="CurriculumSite.Subscriptions" MasterPageFile="~/Curriculum.Master" %>

<%@ Register assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>
<%@ Register assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder">

            <asp:LinqDataSource ID="LinqDataSource" runat="server" 
                ContextTypeName="Model.Entities" 
                onselecting="LinqDataSource_Selecting" TableName="ListView">
            </asp:LinqDataSource>
            
            <table>
                <tr>
                    <td>
                        <dxe:ASPxLabel ID="ASPxLabel6" runat="server" 
                            CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" CssPostfix="PlasticBlue" 
                            Font-Size="Medium" ForeColor="#3e5496" Text="Candidaturas">
                         </dxe:ASPxLabel>                        
                    </td>
                </tr>
                <tr>
                    <td>
                        <dxe:ASPxLabel ID="ASPxLabel5" runat="server" 
                            CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" CssPostfix="PlasticBlue" 
                            Text="Para eliminar registos de candidatura, seleccione as candidaturas de que deseja desistir e prima Remover.">
                        </dxe:ASPxLabel>
                    </td>                
                </tr>
            </table>            
            <br />
            <dxe:ASPxButton ID="unsubscribeASPxButton" runat="server" 
                CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" CssPostfix="PlasticBlue" 
                onclick="unsubscribeASPxButton_Click" Text="Remover">
            </dxe:ASPxButton>

            <br />

            <dxwgv:ASPxGridView ID="subscribedASPxGridView" runat="server" 
        CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" CssPostfix="PlasticBlue" 
        Width="100%" AutoGenerateColumns="False" DataSourceID="LinqDataSource" 
                KeyFieldName="VacancyId">
                <SettingsText EmptyDataRow="Inscreva-se numa ou mais vagas." />
                <SettingsPager ShowDefaultImages="False">
                    <AllButton Text="All">
                    </AllButton>
                    <NextPageButton Text="Next &gt;">
                    </NextPageButton>
                    <PrevPageButton Text="&lt; Prev">
                    </PrevPageButton>
                </SettingsPager>
                <Images ImageFolder="~/App_Themes/Plastic Blue/{0}/">
                    <CollapsedButton Height="15px" 
                        Url="~/App_Themes/Plastic Blue/GridView/gvCollapsedButton.png" Width="15px" />
                    <ExpandedButton Height="15px" 
                        Url="~/App_Themes/Plastic Blue/GridView/gvExpandedButton.png" Width="15px" />
                </Images>
                <Styles CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" 
                    CssPostfix="PlasticBlue">
                    <Header ImageSpacing="10px" SortingImageSpacing="10px">
                    </Header>
                </Styles>
                <Columns>
                    <dxwgv:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0">
                    </dxwgv:GridViewCommandColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Empresa" FieldName="Company" Visible="false" 
                        VisibleIndex="1">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Área" FieldName="Area" VisibleIndex="2">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Sub-Área" FieldName="SubArea" 
                        VisibleIndex="3">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Função" FieldName="Position" 
                        VisibleIndex="4">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Descrição" FieldName="Description" 
                        VisibleIndex="5">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataDateColumn Caption="Início" FieldName="Start" 
                        VisibleIndex="6">
                    </dxwgv:GridViewDataDateColumn>
                    <dxwgv:GridViewDataDateColumn Caption="Início Recrutamento" 
                        FieldName="AcceptingStart" VisibleIndex="7">
                    </dxwgv:GridViewDataDateColumn>
                    <dxwgv:GridViewDataDateColumn Caption="Fim Recrutamento" 
                        FieldName="AcceptingEnd" VisibleIndex="8">
                    </dxwgv:GridViewDataDateColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Referência" 
                        FieldName="Reference" VisibleIndex="9">
                    </dxwgv:GridViewDataTextColumn>
                </Columns>
    </dxwgv:ASPxGridView>

</asp:Content>
